{if condition="$preject"}
<form method="post" action="updatepreject" enctype="multipart/form-data">
    <div id="preject-info">
        <table>
            <input type="hidden" name="id" value="{$preject.id}">
            <tr><th>标题</th><th><input type="text" name="title" value="{$preject.title}" required></th></tr>
            <tr><th>举办部门</th><th><input type="text" name="apartment" value="{$preject.apartment}" required></th></tr>
            <tr><th>截止时间</th><th><input type="date" name="endtime" required></th></tr>
            <tr><th></th><th><input type="submit" value="确认更新"></th></tr>
        </table>


    </div>
    <script id="contnet" name="content" style="width:99%;height: 500px" type="text/plain">{$preject.content}</script>
    </form>
    {else /}
    <form method="post" enctype="multipart/form-data">
    <div id="preject-info">
        <table>
     <tr><th>标题</th><th><input type="text" name="title"  required></th></tr>
    <tr><th>举办部门</th><th><input type="text" name="apartment"  required></th></tr>
    <tr><th>截止时间</th><th><input type="date" name="endtime" required></th></tr>
    <tr><th></th><th><input type="submit" value="确认发布"></th></tr>
    </table>

    </div>
     <script id="contnet" name="content" style="width:99%;height: 500px" type="text/plain"></script>
    </form>
    {/if}

